package panels;

import java.awt.Graphics;

import javax.swing.JPanel;

import grid.Grid;
import grid.GridObject;
import other.Facade;

public class GameScreen extends JPanel implements Panel{
	private Facade facade;
	
	public GameScreen(Facade facade){
		
	}
	public void paintComponent(Graphics g){
		for(int i = 0; i < 10; i++){
			for(int j = 0; j < 10; j++){
				GridObject obj = facade.get(i, j);
				System.out.println(i + ", " + j);
				if(obj == null){
					continue;
				}
				g.drawImage(obj.getImage(), 64*i, 64*j, 64, 64, null);
			}
		}
	}
}
